models = context.portal_catalog.searchResults(portal_type='Model')

for m in models:
  try:
    m.getObject().reindexModel()
    print 'reindexd '+m.id
  except:
    print 'cant reindex '+m.id

return printed
